var isProduction = false;

//var host = isProduction ? 'https://midai5.com/api' : 'http://20.0.0.153:7001'
var host = isProduction ? 'https://midai5.com/api' : 'http://192.168.1.101:7001'
//var host = isProduction ? 'https://midai5.com/api' : 'https://midai5.com/dev'

var bucket = "midaiwu-1257092259";
var region = "ap-shanghai";

var rule = "";

var config = 
{
  // 是否正式环境
  isProduction: isProduction,

  host:host,
  // 登录地址，用于建立会话
  loginUrl: `${host}/v1/weapp/login`,

  // 签名地址
  coscignatureUrl: `${host}/v1/weapp/cos_auth`,

  // 图片上传地址
  uploadUrl_img:`https://${bucket}.cos.${region}.myqcloud.com/product`,
 // uploadUrl_img: "https://" + bucket + ".cos." + region + ".myqcloud.com/product",


  // 资源服务器根路径
  bucketRoot: "https://" + bucket + ".cos." + region + ".myqcloud.com",

  rule: rule,
};

module.exports = config;